/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28956
 * Date: 2024-07-15
 * Time: 21:07
 */
public class Test {
    public static void main(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
        myArraylist.add(1);
        myArraylist.add(2);
        myArraylist.add(39);
        myArraylist.display();
        System.out.println("=============");

        myArraylist.remove(1);
        myArraylist.display();
        System.out.println("=============");

       myArraylist.set(1,100);
        myArraylist.display();
        System.out.println("=============");

        System.out.println(myArraylist.get(1));
        System.out.println("=============");


        System.out.println(myArraylist.contains(39));
        System.out.println("=============");

        System.out.println(myArraylist.size());
        System.out.println("=============");

        myArraylist.clear();
        myArraylist.display();

    }
}
